package org.example.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.example.entity.BaseEntity;

/**
 * 评论
 */
@Data
@TableName("remark")
public class Remark extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;     //id
    private Long postId;    //所属帖子ID
    private Long userId; //所属用户ID
    private String content; //帖子内容
    @TableField(exist = false)
    private String nickname;   //所属用户ID的用户昵称
    @TableField(exist = false)
    private String avatarPath;   //所属用户ID的用户头像
}
